var star1 : GUITexture;
var star_off : Texture2D;
var star2 : GUITexture;
var star3 : GUITexture;
var leftMonstersCount = 4;
var leftMolesCount = 3;

function OnTriggerEnter (other : Collider) {
	if (other.gameObject.name.StartsWith("monster")) {
		leftMonstersCount--;
	} else if (other.gameObject.name.StartsWith("mole")) {
		leftMolesCount--;
		if (leftMolesCount == 2) {
			star3.guiTexture.texture = star_off;
		} else if (leftMolesCount == 1) {
			star2.guiTexture.texture = star_off;
		} else if (leftMolesCount == 0){
			star1.guiTexture.texture = star_off;
		}
		
	}
	Destroy(other.gameObject);
}